package cn.xiyun.xiyuncc.feignClient;

import cn.xiyun.xiyuncc.dto.CourseSearchDto;
import cn.xiyun.xiyuncc.result.JSONResult;
import cn.xiyun.xiyuncc.searchFallback.SearchFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-search",fallbackFactory = SearchFallbackFactory.class)
public interface SearchFeignClient {
    @RequestMapping("/searchCourse/courseSearchSave")
     JSONResult courseSearchSave(@RequestBody CourseSearchDto courseSearchDto);

    @RequestMapping("/searchCourse/courseSearchDelete")
     JSONResult courseSearchDelete(@PathVariable Long id);
}
